package com.hljx.mapper.sys;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hljx.dto.AccountingUnitWeightPageDTO;
import com.hljx.dto.ExportAccountingUnitWeight;
import com.hljx.entity.AccountingUnitWeight;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hljx.vo.AccountingVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 核算单元权重配置表 Mapper 接口
 * </p>
 *
 * @author gx
 * @since 2023-10-07
 */
@Mapper
public interface AccountingUnitWeightMapper extends BaseMapper<AccountingUnitWeight> {

    /**
     * 分页查询核算单元权重配置
     * @param page
     * @param dto
     * @return
     */
    IPage<AccountingUnitWeight> listByPage(@Param("page") Page<AccountingUnitWeight> page,
                                           @Param("dto") AccountingUnitWeightPageDTO dto);

    /**
     * 查询选中的核算单元权重数据
     * @param dto
     * @return
     */
    List<AccountingUnitWeight> listAccountingUnitWeight(@Param("queryDTO") ExportAccountingUnitWeight dto);

    /**
     * 查询该核算周期未添加权重的核算单元
     * @param assessmentCycleId
     * @return
     */
    List<AccountingVO> listAccountingVO(@Param("assessmentCycleId") Long assessmentCycleId);


}
